home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global gCurrentPos, gNbItem
- if getAt(gNbItem, 3) <= 6 then
- return
- end if
- set inc to 0.0
- if the mouseV < SpriteTop(27) then
- repeat while the mouseDown
- if rollOver(26) and (the mouseV < SpriteTop(27)) then
- set inc to inc + 0.19999999999999998
- if (getAt(gCurrentPos, 3) - integer(inc)) < 2 then
- setAt(gCurrentPos, 3, 2)
- else
- setAt(gCurrentPos, 3, getAt(gCurrentPos, 3) - integer(inc))
- end if
- SetWindow2(3, 7)
- end if
- end repeat
- else
- if the mouseV > SpriteBottom(27) then
- repeat while the mouseDown
- if rollOver(26) and (the mouseV > SpriteBottom(27)) then
- set inc to inc + 0.19999999999999998
- if (getAt(gCurrentPos, 3) + integer(inc)) > (getAt(gNbItem, 3) - 6) then
- setAt(gCurrentPos, 3, getAt(gNbItem, 3) - 6)
- else
- setAt(gCurrentPos, 3, getAt(gCurrentPos, 3) + integer(inc))
- end if
- SetWindow2(3, 8)
- end if
- end repeat
- end if
- end if
- ActiveField(3)
- end
-